package com.zrrd.zuo.class03;

import java.util.PriorityQueue;

/**
 * @author ywb
 * @Description:
 * @date 2023/3/19 21:18
 */
public class Test {
    public static void main(String[] args) {
        PriorityQueue<Integer> heap = new PriorityQueue<>();
        heap.add(5);
        heap.add(7);
        heap.add(0);
        heap.add(2);
        heap.add(5);
        while (!heap.isEmpty()){
            System.out.println(heap.poll());
        }
    }
}
